// API 配置
export const API_BASE_URL = 'http://localhost:8001'

// API 端点
export const API_ENDPOINTS = {
    HOME: '/',
    VULNERABILITIES: '/api/vulnerabilities',
    RECENT_VULNERABILITIES: '/api/vulnerabilities/recent',
    SEARCH_VULNERABILITIES: '/api/vulnerabilities/search',
    SAMPLES: '/api/samples',
    STATS: '/api/stats'
}

// 确保所有请求都使用完整的 URL
export const getApiUrl = (endpoint) => `${API_BASE_URL}${endpoint}` 